<!DOCTYPE html>
<html>
<head>
  <title>Login</title>
  <meta charset="UTF-8">
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  <meta name="keywords" content="Flat Dark Web Login Form Responsive Templates, Iphone Widget Template, Smartphone login forms,Login form, Widget Template, Responsive Templates, a Ipad 404 Templates, Flat Responsive Templates" />
  <link href="/blogs/commons/css/login.css" rel='stylesheet' type='text/css' />
  <!--webfonts-->
  <link href='http://fonts.useso.com/css?family=PT+Sans:400,700,400italic,700italic|Oswald:400,300,700' rel='stylesheet' type='text/css'>
  <link href='http://fonts.usesfo.com/css?family=Exo+2' rel='stylesheet' type='text/css'>
  <!--//webfonts-->
</head>
<body>

<!--SIGN UP-->
<h1>请选择登陆</h1>
<div class="login-form">
  <div class="close"> </div>
  <div class="head-info">
    <label class="lbl-1"> </label>
    <label class="lbl-2"> </label>
    <label class="lbl-3"> </label>
  </div>
  <div class="clear"> </div>
  <div class="avtar">
    <img src="/blogs/commons/img/tit.png" />
  </div>
  <form id="form1" action="/blogs/userController/getHome" method="get">
    <input type="text" id="name" class="text" name="name" placeholder="userName">
    <div class="key">
      <input id="pwd" type="password" name="pwd"  placeholder="password">
    </div>
  </form>

  <div class="signin">
    <input id="submit1" type="submit" value="Login" >
  </div>

  <!-- 验证账号密码是否正确 -->


</div>

<a href="/blogs/userController/ykGetHome" id="yk">
 游客模式
</a>


<script src="/blogs/commons/js/jquery-1.10.2.js"/>

<script>

</script>
<script>
    $("#submit1").click(function () {
        var name = $("#name").val();
        var pwd = $("#pwd").val();
        $.get("/blogs/userController/verifyAccount?name=" + name + "&pwd="+pwd,function (result) {
            if(result){
                $("#form1").submit();
            }else {
                alert("账号或密码错误")
            }
        })
    })

</script>
</body>
</html>